﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EnterpriseManagement.Models.TeamMemberModel>" %>

<style>
.fixedwidth
{
	width:100px;
}
</style>


<div id="addteammember">
<h1>添加项目成员</h1>
 <br /><br /><br />
    <%: Html.ValidationSummary(true) %>
    <% using (Ajax.BeginForm(
    "AddTeammember", 
    new AjaxOptions { 
        HttpMethod = "POST",
        UpdateTargetId = "addteammember" 
    }
    )) { %>

     <table id="tablenoframe" style =" margin:0 20%">
            <tr>
                <td class="label"><%: Html.LabelFor(model => model.EmployeeId) %></td>
                <td class="editor-field"><nobr>
                <%: Html.TextBoxFor(model => model.EmployeeId) %>
                <%: Html.ValidationMessageFor(model => model.EmployeeId) %>
                </nobr>
                </td>
            </tr>

            <tr>
                <td class ="label"><%:Html.LabelFor (model=>model.ProjectName) %></td>   
                <td class ="editor-label"><nobr>  <%:Html.DropDownList("ProjectName", (SelectList)ViewData["ProjectName"], "", new { style = "width:100px" })%>
                <%:Html.ValidationMessageFor(model => model.ProjectName)%>  
                </nobr></td>    
            </tr>

            <tr>
                <td class="label"><%: Html.LabelFor(model => model.Position) %></td>
                <td class="editor-field"><nobr>
                <%: Html.DropDownList("Position", (SelectList)ViewData["Position"],  new { style = "width:100px" })%>
                <%: Html.ValidationMessageFor(model => model.Position)%>
                </nobr></td>
            </tr>

            <tr>
                <td class="label"><%: Html.LabelFor(model => model.DirectorId) %></td>
                <td class="editor-field"><nobr>
                <%: Html.PasswordFor(model => model.DirectorId)%>
                <%: Html.ValidationMessageFor(model => model.DirectorId)%>
                </nobr></td>
            </tr>

          
             <tr>
                <td></td><td><input type="submit" value="添加" style ="margin-left:80px;position:absolute" /></td>
              </tr>
         
            </table>

<% } %>

</div>